package com.ljy.springcloud;

import com.ljy.myrule.LanRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

/**
 * @author ljy
 * @create 2020-10-30-15:20
 */
@SuppressWarnings("checkstyle:TypeName")
@SpringBootApplication
@EnableEurekaClient
//在微服务启动的时候就能去加获我们自定义Ribbon类
@RibbonClient(value = "SPRINGCLOUD-PROVIDER-DEPT", configuration = LanRule.class)
public class DeptConsumer_80 {
    public static void main(String[] args) {
        SpringApplication.run(DeptConsumer_80.class, args);
    }
}
